The phrase "out of the way" can be used in several contexts, and it generally means to remove something or someone to avoid obstruction or to be distant from a usual place or route.
In summary, "out of the way" is a versatile phrase that can refer to avoiding obstruction, completing a task, being in a distant location, or describing unusual behavior.